'''
Created on 10/01/2011

@author: jguerrer
'''

class Face(object):
    '''
    classdocs
    name is a plain string
    outhercomponent is also a plain string
    innercomponent is an innerstring    
    '''

    
    
    def __init__(self, id, outerCompoment , innerComponents):
        '''
        Constructor
        '''
        
        self.id = id
        self.outerComponent = outerCompoment
        self.innerComponents = innerComponents
        self.attributes = []
    
    def toString(self):
        data=''
        if not self.id ==  None:
            data += "f" + self.id
        if not self.outerComponent  ==  None:
            data += "\t\tOuter: "  + self.outerComponent.id
        if not self.innerComponents  ==  None:
            for d in self.innerComponents:
                data += "\t\tInner: "  + d.id

        return data;